(function () {
    angular.module('app')
        .factory('OrderDetailFactory',fn);
    function fn(urlCnst) {
        var self = {};
        self.confirmReceipt = function (orderId, cb) {
            urlCnst.post('confirm-receipt' + orderId, cb)
        };

        return self;
    }
})();